<!-- SvgIcon.vue -->
<script setup>
import { ref } from 'vue'

defineOptions({
  name: 'SvgIcon'
})
const prop = defineProps({
  name: {
    type: String,
    default: 'icon-nav-help'
  },
  color: {
    type: String,
    default: '#1d1d1f'
  },
  width:{ 
    type:String,
    deftult:'24px'
  },
  height:{
    type:String,
    deftult:'24px'
  }
})
</script>

<template>
  <svg class="svg-icon" aria-hidden="true" :style="{width: prop.width,height: prop.height}">
    <use :xlink:href="`#${prop.name}`" :fill="prop.color"/>
  </svg>
</template>
<style lang="scss">
.svg-icon {
  width: 24px;
  height:  24px;
  grid-row-start: 1;
  grid-row-end: 3;
}
</style>